#include <sys/types.h>
#include <sys/stat.h>
#include<unistd.h>
#include <fcntl.h>
#include<string.h>
#include<stdlib.h>
#include<stdio.h>
#include"mystdio.h"

int main()
{
    printf("hello mylib\n");
    MyFile*filep=MyFopen("log.txt","w");
    if(!filep)
    {
        perror("MyFopen fail");
        exit(1);
    }

    const char*str="hello mystdio";
    MyFwrite(filep,str,strlen(str));
    MyFclose(filep);
    return 0;
}
